﻿using System;
using System.Linq;
using System.Web;

namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IMessageRepository
    {
        // Default Add, Delete and save actions
        void Add(Message message);
        void Delete(Message message);
        void Save();

        // Querys
        Message FindMessage(int id);
        IQueryable<Message> FindAllMessages();
        IQueryable<Message> FindMessagesSentByMe(string mySSN);
        IQueryable<Message> FindMessagesSentToMe(string mySSN);
        IQueryable<Message> FindMessagesSentByMeToUser(string mySSN, string reciverSSN);
        
    }
}
